package com.fjxd.user.web;


import com.fjxd.user.pojo.vo.FractionVo;
import com.fjxd.user.service.FractionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("fraction")
public class FractionController {
    @Autowired
    private FractionService fractionService;

    @GetMapping("/{id}")
    public FractionVo getFraction(@PathVariable Integer id){
        return fractionService.getFraction(id);
    }
}
